package com.vito.dcs.sys.material.service;

import java.util.List;

import com.vito.base.authoriza.service.BaseService;
import com.vito.base.model.DataGrid;
import com.vito.dcs.sys.material.model.SysMaterialModel;

/**
 * 材料类型
 * @author lyhao
 *
 */
public interface SysMaterialService extends BaseService {
	/**
	 * 添加
	 * @param sysMaterialModel
	 */
	public void saveSysMaterial(SysMaterialModel sysMaterialModel);
	/**
	 * 分页查询
	 * @param sysMaterialModel
	 * @return
	 */
	public DataGrid<SysMaterialModel> querySysMaterialByPage(SysMaterialModel sysMaterialModel);
	/**
	 * 查询
	 * @param sysMaterialModel
	 * @return
	 */
	public SysMaterialModel querySysMaterial(SysMaterialModel sysMaterialModel);
	/**
	 * 修改
	 * @param sysMaterialModel
	 * @return
	 */
	public SysMaterialModel updateSysMaterial(SysMaterialModel sysMaterialModel);
	/**
	 * 删除
	 * @param sysMaterialModel
	 * @return
	 */
	public Integer deleteSysMaterial(SysMaterialModel sysMaterialModel);
	
	/**
	 * 根据结构层查询材料
	 * @param layerId
	 * @return
	 */
	public List<SysMaterialModel> queryMaterialListByLayerId(String layerId);
}